<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<f:view>
		<ui:include src="../topo.xhtml"></ui:include>
	</f:view>
</h:head>
<h:body>

	<h:outputStylesheet library="css" name="estilo.css" />

	<h:panelGroup rendered="#{sessaoMB.usuario.administrador}">
		<div class="container">
			<div class="navegacao">&nbsp;&nbsp;&nbsp; Inicio > Usuario > Editar</div>

			<div class="conteudo">

			<div class="formCad">
				<h:form id="form">
					<p:growl showDetail="true"></p:growl>
					<h:outputLabel value="Nome &nbsp;"></h:outputLabel>
					<h:inputText value="#{editarUsuarioMB.nome}"></h:inputText>
					<br></br>
					<h:outputLabel value="CPF &nbsp;"></h:outputLabel>
					<h:inputText value="#{editarUsuarioMB.cpf}"></h:inputText>
					<br></br>
					<h:outputLabel value="Matricula &nbsp;"></h:outputLabel>
					<h:inputText value="#{editarUsuarioMB.matricula}"></h:inputText>
					<br></br>
					<h:outputLabel value="Email &nbsp;"></h:outputLabel>
					<h:inputText value="#{editarUsuarioMB.email}"></h:inputText>
					<br></br>
					<h:outputText value="Administrador: " />
					<p:selectBooleanCheckbox value="#{editarUsuarioMB.administrador}" />
					<br></br>
					<h:outputText value="Professor: " />
					<p:selectBooleanCheckbox value="#{editarUsuarioMB.professor}" />
					<br></br>
					<p:commandButton value="Editar" action="#{editarUsuarioMB.editar}"
						update="form"></p:commandButton>
				</h:form>
				</div>
			</div>
		</div>
	</h:panelGroup>
</h:body>
</html>